<?php

namespace DesignNew\Proxy;

require('../vendor/autoload.php');

class ProClient
{
    public function __construct()
    {
        $this->run();
    }

    public function run()
    {
       $door = new Security(new LabDoor());
       $door->open('invalid');

       $door->open('$ecr@t');
       $door->close();
    }
}

$client = new ProClient();